package csc.fresher.entity;

import java.util.Date;

public abstract class InterestRate {
	protected int interestRateID;
	protected double rate;
	protected Date fromDate;
	protected Date toDate;
	protected int currencyID;
	protected int periodTypeID;
	protected Date createdDate;

	private Currency currency;
	private PeriodType periodType;

	public Currency getCurrency() {
		return currency;
	}

	public void setCurrency(Currency currency) {
		this.currency = currency;
	}

	public PeriodType getPeriodType() {
		return periodType;
	}

	public void setPeriodType(PeriodType periodType) {
		this.periodType = periodType;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public InterestRate() {
	}

	public InterestRate(int depositInterestRateID, double rate, Date fromDate,
			Date toDate, int currencyID, int periodTypeID) {
		this.interestRateID = depositInterestRateID;
		this.rate = rate;
		this.fromDate = fromDate;
		this.toDate = toDate;
		this.currencyID = currencyID;
		this.periodTypeID = periodTypeID;
	}

	public InterestRate(int interestRateID, double rate, Date fromDate,
			Date toDate, int currencyID, int periodTypeID, Date createdDate) {
		super();
		this.interestRateID = interestRateID;
		this.rate = rate;
		this.fromDate = fromDate;
		this.toDate = toDate;
		this.currencyID = currencyID;
		this.periodTypeID = periodTypeID;
		this.createdDate = createdDate;
	}

	public int getInterestRateID() {
		return interestRateID;
	}

	public void setInterestRateID(int interestRateID) {
		this.interestRateID = interestRateID;
	}

	public double getRate() {
		return rate;
	}

	public void setRate(double rate) {
		this.rate = rate;
	}

	public Date getFromDate() {
		return fromDate;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public Date getToDate() {
		return toDate;
	}

	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}

	public int getCurrencyID() {
		return currencyID;
	}

	public void setCurrencyID(int currencyID) {
		this.currencyID = currencyID;
	}

	public int getPeriodTypeID() {
		return periodTypeID;
	}

	public void setPeriodTypeID(int periodTypeID) {
		this.periodTypeID = periodTypeID;
	}
}
